<?=$load->view('right.header.php');?>
<form action="/news/write.html?tpl=<?=$tpl?>&clg=<?=$caller['clg'][1]?>&hcs=<?=$htdocs['id']?>" method="post">
<table class="form">
	<caption><?=$menu[$caller['clg'][1]]['name']?></caption>
<tr>
	<th width="90">标题</th>
    <td >
    	<input type="text" size="60" name="caption" id="caption" value="<?=$news['caption']?>" class="upload_preview"/>
    	<?php if(isset($message['caption'])){?><font color="red"><?=$message['caption']?></font><?php }?>
    </td>
</tr>
<?php
if(empty($cover)){
?>
<tr>
	<th>封面</th>
    <td >
    	<input type="text" size="45" name="cover" id="cover" value="<?=$news['cover']?>" class="upload_preview"/>
    	<input type="button" class="img_select" value="选择/上传..." /> 尺寸必须为127x71
    </td>
</tr>
<?php
}
?>
<tr>
	<th>发布时间</th>
    <td >
    	<input type="text" size="20" name="release" id="release" value="<?=date('Y-m-d H:i:s',$news['release'])?>" class="upload_preview"/>
    	为空则使用当前时间
    </td>
</tr>
<tr>
	<th>作者</th>
    <td >
    	<input type="text" size="20" name="author" id="author" value="<?=$news['author']?>" class="upload_preview"/>
    </td>
</tr>
<tr>
	<th>来源</th>
    <td >
    	<input type="text" size="20" name="source" id="source" value="<?=$news['source']?>" class="upload_preview"/>
    </td>
</tr>
<tr>
	<th>内容</th>
    <td>
    	<textarea name="content" class="ckeditor" cols="50" rows="5" style="visibility: hidden; display: none;"><?=$news['content']?></textarea>
    </td>
</tr>
<tr>
	<td></td>
    <td>
    	<input value="提交" type="submit">
    </td>
</tr>
</table>
</form>
<?=$load->view('right.footer.php');?>